//
//  DiscoverSub4ViewController.m
//  QuLuoMianApp
//
//  Created by Sierra on 2017/12/23.
//  Copyright © 2017年 科大讯飞. All rights reserved.
//

#import "DiscoverSub4ViewController.h"
#import "ScrollPictireViewController.h"

@interface DiscoverSub4ViewController ()


@property (weak, nonatomic) IBOutlet UIView *leftView;


@property (weak, nonatomic) IBOutlet UIView *rightView;

@end

@implementation DiscoverSub4ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
      self.title = @"锦囊攻略";
     UITapGestureRecognizer * tapGes = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapToScrollPictureVC:)];
    
    UITapGestureRecognizer * tapGes2 = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapToScrollPictureVC:)];
    [self.leftView addGestureRecognizer:tapGes];
    [self.rightView addGestureRecognizer:tapGes2];
}


- (void)tapToScrollPictureVC:(UITapGestureRecognizer *)tap{
    
    ScrollPictireViewController * vc = [[ScrollPictireViewController alloc] init];
    
    if (tap.view == self.leftView) {
        vc.picture = @"jinglang_gonglue_left_icon";
    }else{
        vc.picture = @"jinglang_gonglue_right_icon";
        
    }
    
    [self.navigationController pushViewController:vc animated:YES];
    
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
